package com.uphone.kingmall.adapter;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.china.zhuoyue.R;
import com.uphone.kingmall.bean.HaggleDetailBean;

/**
 * author : SuMeng
 * e-mail : 986335838@qq.com
 * time   : 2019/02/18
 * desc   : 砍价记录adpater
 */
public class KanJiaJiLuListAdpater extends BaseQuickAdapter<HaggleDetailBean.HaggleInfoBean.HaggleHelpsBean, BaseViewHolder> {

//    @BindView(R.id.iv_icon)
//    ImageView ivIcon;
//    @BindView(R.id.tv_name)
//    TextView tvName;
//    @BindView(R.id.tv_price)
//    TextView tvPrice;
//    @BindView(R.id.tv_kanjia)
//    TextView tvKanjia;

    public KanJiaJiLuListAdpater() {
        super(R.layout.kingmall_item_kanjia_jilu);
    }

    @Override
    protected void convert(final BaseViewHolder helper, final HaggleDetailBean.HaggleInfoBean.HaggleHelpsBean item) {
        helper.setText(R.id.tv_user_name, "" + item.getUserName());
        helper.setText(R.id.tv_price, "砍掉" + item.getHelpHagglePrice() + "元");
        ImageView iv_lawyer_icon = helper.getView(R.id.iv_user_head);
        Glide.with(mContext).load(item.getUserPhoto()).into(iv_lawyer_icon);
    }
}